package com.hntest.service;

import com.hntest.entity.BidRequest;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Iterator;
import java.util.Map;

import static org.junit.Assert.*;


@RunWith(SpringRunner.class)
@SpringBootTest
public class BidRequestServiceTest {

    @Autowired
    private BidRequestService bidRequestService;

    @Test
    public void getCounts() {
    }

    @Test
    public void getListByPage() {

    }

    @Test
    public void insert() {

    }

    @Test
    public void bidThis() {

    }

    @Test
    public void update() {
    }

    @Test
    public void getUserinfo() {
        BidRequest bidRequest = new BidRequest();
        bidRequest.setBidrequestid(1);
        BidRequest b = bidRequestService.getUserinfo(bidRequest);
        System.out.println(b);
        /*Iterator it = map.keySet().iterator();
        while (it.hasNext()){
            String key = it.next().toString();5
            String value = (String)map.get(key);

            System.out.println("key:"+key);
            System.out.println("value:"+value);
            System.out.println("================");
        }*/

    }
}